UserView = function() 
{

	function initEvent() 
	{
		$('#updateuser')[0].addEventListener('click',onClickUpdate);
		$('#deleteuser')[0].addEventListener('click',onClickDelete);
	}
	
	function onClickUpdate()
	{
		console.log("--onClickUpdate");
		location.href= "/springmvc/user/goToUserView.do?action=update&id=" + getUserId();
	}
	
	function onClickDelete()
	{
		console.log("--onClickDelete");
		location.href= "/springmvc/user/removeUser.do?id=" + getUserId();
	}
	
	function getUserId()
	{
		return $("#userId").val();
	}
	
	this.init = function() 
	{
		initEvent();
	};
};